Part Number Hot Search : 
ECCM1 N74F86N LC87F 012T3 MCP450P A3957SA BD242 074162
Product Description
Full Text Search
 

To Download SDK157 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ? motorola, inc., 2003. all rights reserved. embedded sdk (software development kit) targeting motorola 56f800 demonstration board SDK157/d rev. 1, 03/24/2003 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola table of contents i about this book audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii suggested reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . viii definitions, acronyms, and abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix references. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix chapter 1 introduction 1.1 overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 chapter 2 directory structure 2.1 56f800 demonstration board directory structure. . . . . . . . . . . . . . . . . . . . . . . . . 2-1 chapter 3 56f800 demonstration board applications 3.1 applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 3.1.1 quad timer flashing leds demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 3.1.1.1 set-up for quad timer flashing leds demonstration . . . . . . . . . . . . . . . 3-1 3.1.1.2 procedure for quad timer flashing leds demonstration . . . . . . . . . . . . 3-1 3.1.2 timer driver flashing leds demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 3.1.2.1 set-up for timer driver flashing leds demonstration . . . . . . . . . . . . . . 3-2 3.1.2.2 procedure for timer driver flashing leds demonstration . . . . . . . . . . . 3-2 3.1.3 frequency spectrum with amplitude demonstration . . . . . . . . . . . . . . . . . . . 3-2 3.1.3.1 set-up for frequency spectrum with amplitude demonstration . . . . . . . . 3-3 3.1.3.2 procedure for frequency with amplitude spectrum demonstration . . . . . 3-3 3.1.4 frequency spectrum without amplitude demonstration . . . . . . . . . . . . . . . . . 3-3 3.1.4.1 set-up for frequency spectrum without amplitude demonstration . . . . . 3-4 3.1.4.2 procedure for frequency without amplitude spectrum demonstration . . 3-4 3.1.5 frequency detector demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 3.1.5.1 set-up for frequency detector demonstration . . . . . . . . . . . . . . . . . . . . . . 3-5 3.1.5.2 procedure for frequency without amplitude spectrum demonstration . . 3-5 3.1.6 potentiometer-controlled leds demonstration . . . . . . . . . . . . . . . . . . . . . . . 3-5 3.1.6.1 set-up for pot-controlled leds demonstration . . . . . . . . . . . . . . . . . . . 3-6 3.1.6.2 procedure for frequency without amplitude spectrum demonstration . . 3-6 3.1.7 serial bootloader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6 contents f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
ii targeting motorola 56f800 demonstration board motorola 3.1.8 files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3- 7 3.1.9 target configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7 3.1.9.1 set-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7 3.1.9.1.1 demonstration board jumper settings . . . . . . . . . . . . . . . . . . . . . . . . . 3-8 3.1.9.2 build . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8 3.1.9.2.1 download into boot flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8 3.1.9.2.2 host terminal program set-up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8 3.1.9.3 execute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8 3.1.9.4 requirements for a loaded program . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10 f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola list of tables iii table 3-1 error codes for the serial bootloader application . . . . . . . . . . . . . . . . . . . . . . 3-9 list of tables f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
iv targeting motorola 56f800 demonstration board motorola f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola list of figures v figure 2-1 56f800 demonstration board directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 figure 3-1 leds in the timer driver demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 figure 3-2 leds in the frequency spectrum with amplitude demonstration . . . . . . . . . . 3-3 figure 3-3 leds in the frequency spectrum without amplitude demonstration. . . . . . . . 3-4 figure 3-4 leds during the frequency detector demonstration . . . . . . . . . . . . . . . . . . . . 3-5 figure 3-5 leds in the pot-controlled leds demonstration . . . . . . . . . . . . . . . . . . . . . . 3-6 list of figures f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
vi targeting motorola 56f800 demonstration board motorola f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola preface vii about this book this manual describes the applications for the 56f800 demonstration board. audience this document targets software developers using the 56f800 demonstration board. organization ? chapter 1, introduction provides a brief overview of this document ? chapter 2, directory structure provides a description of the required core directories ? chapter 3, 56f800 demonstration board applications describes the available demonstrations for the 56f800 demonstration board suggested reading we recommend that you have a copy of the following references: ? targeting motorola dsp56f80x platform manual, sdk126/d ? 568f00 demonstration board users manual, tbd ? dsp56800 family manual, dsp56800fm/ad ? dsp56f80x users manual , dsp56f801-7um/ad ? inside codewarrior: core tools , metrowerks corp. f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
viii targeting motorola 56f800 demonstration board motorola conventions this document uses the following notational conventions: typeface, symbol or term meaning examples courier monospaced type code examples //process command for line flash italic directory names, project names, calls, functions, statements, procedures, routines, arguments, file names, applications, variables, directives, code snippets in text ...and contains these core directories: applications contains applications software... ...codewarrior project, 3des.mcp is... ...the pconfig argument.... ...defined in the c header file, aec.h .... bold reference sources, paths, emphasis ...refer to the targeting dsp56f80x platform manual.... ...see: c:\program files\motorola\embedded sdk\help\tutorials blue text linkable on-line ...refer to chapter 7 , license.... number any number is consid- ered a positive value, unless preceded by a minus symbol to signify a negative value 3v -10 des -1 all capital letters # defines/ defined constants # define include_stack_check brackets [...] function keys ...by pressing function key [f7] quotation marks, ... returned messages ...the message, test passed is displayed.... ...if unsuccessful for any reason, it will return null... f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola preface ix definitions, acronyms, and abbreviations the following list defines the acronyms and abbreviations used in this document. as this template develops, this list will be generated from the document. as we develop more group resources, these acronyms will be easily defined from a common acronym dictionary. please note that while the acronyms are in solid caps, terms in the definition should be initial capped only if they are trademarked names or proper nouns. adc analog-to-digital converter cop computer operating properly dsp digital signal processor or digital signal processing fft fast fourier transform gpio general purpose input/output isr interrupt service request pot potentiometer pwm pulse width modulator sdk software development kit references the following sources were used to produce this book: 1. targeting motorola dsp56f80x platform manual, sdk126/d 2. 56f800 demonstration board users manual, tbd 3. dsp56800 family manual, dsp56800fm/ad 4. dsp56f80x users manual , dsp56f801-7um/ad 5. embedded sdk programmers guide, sdk 101/d f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
x targeting motorola 56f800 demonstration board motorola f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola introduction 1-1 chapter 1 introduction 1.1 overview the 56f800 demonstration board is a low-cost board that allows a user to execute preprogrammed demonstrations, as well as to develop his own applications using free codewarrior tools. the 56f800 demonstration board consists of a 60 mip 56f801 hybrid controller, a microphone attached to the adc, a potentiometer (pot) attached to the adc, a button attached to an external interrupt (irq) and 10 leds. pads have also been included on the board so a user can access all of the 56f801s peripherals. the demonstration board does not have an external crystal, so the 56f801 must use its internal oscillator. for more information about developing software for this demonstration board, please refer to the sections about the 56f801 in the targeting motorola dsp56f80x platform manual. this document describes the sdks on-chip drivers, off-chip drivers, and libraries that are available for the 56f801. it also describes how to get started with codewarrior and the sdk. for more specific 56f801 information, refer to the dsp56f80x users manual . f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
1-2 targeting motorola 56f800 demonstration board motorola introduction f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola directory structure 2-1 chapter 2 directory structure 2.1 56f800 demonstration board directory structure figure 2-1 illustrates the directory structure for the 56f800 demonstration board. figure 2-1. 56f800 demonstration board directories in the 56f800 demonstration board directory structure, only demo projects are located in the applications directory. all other files are located in /src/dsp56801evm . please refer to the targeting motorola dsp56f80x platform manual for a description of these files. dsp56f800_demoboard nos applications + src f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
2-2 targeting motorola 56f800 demonstration board motorola directory structure f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola 56f800 demonstration board applications 3-1 chapter 3 56f800 demonstration board applications 3.1 applications the following applications have been provided by motorola to easily demonstrate some of the features of the 56800 family of hybrid controllers. 3.1.1 quad timer flashing leds demonstration the quad timer flashing leds demonstration illustrates use of five channels of the quad timer. the first timer goes off on an overflow, which starts the second timer. the second timer goes off on compare 1, which starts the third timer. the third timer goes off on compare 2, which starts the third timer, the fourth timer goes off on compare 3, which starts the fifth timer. the fifth timer goes off on compare 4, which starts the first timer. each column of leds reflects the status of the corresponding timer, and as a result, the leds on the running application are also lighted continuously. 3.1.1.1 set-up for quad timer flashing leds demonstration demonstration board jumper settings: use default settings as shown in the 56f800 demonstration board users manual . 3.1.1.2 procedure for quad timer flashing leds demonstration ? using codewarrior, open: ...\nos\applications\quadtimer\quadtimer.mcp ? build and download the project; when the debugger reaches main() , it will stop ? select run in the debugger to continue executing the test ? at this point, the five columns of leds will turn on and off sequentially f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
3-2 targeting motorola 56f800 demonstration board motorola 56f800 demonstration board applications 3.1.2 timer driver flashing leds demonstration this demonstration exercises timer0, timer1, timer2, timer3, and timer4 peripherals located in the 56f801 processor. it initializes timer1 using clock id clock_aux1 to 1 second with a reload value of 1 second. timer2 is initialized using clock id clock_aux2 to 0.5 seconds with a reload value of 0.5 seconds. timer3 is initialized using clock id clock_aux3 to 0.25 seconds with a reload value of 0.25 seconds. timer 4 is initialzed using clock id clock_aux4 to 0.125 seconds with a reload value of 0.125 seconds. when these timers expire, the application changes the on/off state of the leds. figure 3-1 shows the net effect of these activities. for interaction with timer0, the application uses the sdk timer services. the sdk timer services reserves timer0 with clock id clock_realtime, and utilizes this timer for nanosleep functionality. this application calls the nanosleep interface with a time-out value of 0.5 seconds in a tight loop. the net effect of this call is suspension of the main function execution for 0.5 seconds. figure 3-1. leds in the timer driver demonstration 3.1.2.1 set-up for timer driver flashing leds demonstration demonstration board jumper settings: use default settings as shown in the 56f800 demonstration board users manual . 3.1.2.2 procedure for timer driver flashing leds demonstration ? using codewarrior, open: ...\nos\applications\timers\timers.mcp ? build and download the project; when the debugger reaches main() , it will stop ? select run in the debugger to continue executing the demonstration ? once the application is running, the application changes the on/off state of the leds 3.1.3 frequency spectrum with amplitude demonstration this demonstration exercises the adc, pwm, and gpio in the 56f801 processor. it samples the adc at a rate of 8000 samples/second. the demonstration then performs an fft on the sampled data to determine the frequency content of the analog signal. finally, it uses the 10 leds, which are connected to the pwm and gpio, to display the frequency content and amplitude. d10 d8 d6 d4 d9 d7 d5 d3 d1 d2 4hz 0.25hz 0.5hz 1hz 2hz flashing rate f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
applications motorola 56f800 demonstration board applications 3-3 the first column of leds refers to the dc component of the audio signal. the second, third, fourth, and fifth columns of leds refer to, respectively, the following frequency components: 1khz, 2khz, 3khz, and 4khz. for an illustration of the leds during this demonstration, see figure 3-2 . figure 3-2. leds in the frequency spectrum with amplitude demonstration 3.1.3.1 set-up for frequency spectrum with amplitude demonstration demonstration board jumper settings: use default settings as shown in the 56f800 demonstration board users manual . 3.1.3.2 procedure for frequency with amplitude spectrum demonstration ? using codewarrior, open: ...\nos\applications\freqspectrum\freqspectrum.mcp ? open main.c and define demo_board_with_amplitude to be 1 ? build and download the project; when the debugger reaches main() , it will stop ? select run in the debugger to continue executing the demonstration ? input audio signals (less than 4khz) into the microphone ? the leds should turn on/off, depending on the frequencies contained in the audio signal ? pausing the demonstration while the demonstration is executing, the leds will flash if the irq button is pushed, the demonstration will pause and the leds will indicate the demonstrations state at the time it was paused the demonstration will continue when the irq button is pressed again 3.1.4 frequency spectrum without amplitude demonstration this demonstration exercises the adc, pwm, and gpio in the 56801 processor. it samples the adc at a rate of 8000 samples/second. the demonstration then performs an fft on the sampled data to determine the frequency content of the analog signal. finally, it uses the 10 leds, which are connected to the pwm and gpio, to display the frequency content. d10 d8 d6 d4 d9 d7 d5 d3 d1 d2 4000hz 0hz 1000hz 2000hz 3000hz high level low level f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
3-4 targeting motorola 56f800 demonstration board motorola 56f800 demonstration board applications the first led in the top row refers to the dc component of the audio signal. the second through fifth leds in the top row refer to, respectively, the following frequency components: 500hz, 1.0khz, 1.5khz, 2.0khz. the first through fourth leds in the bottom row refer to, respectively, the following frequency components: 2.5khz, 3.0khz, 3.5khz, and 4.0khz. figure 3-3 shows leds during the frequency spectrum without amplitude demonstration. figure 3-3. leds in the frequency spectrum without amplitude demonstration 3.1.4.1 set-up for frequency spectrum without amplitude demonstration demonstration board jumper settings: use default settings as shown in the 56f800 demonstration board users manual . 3.1.4.2 procedure for frequency without amplitude spectrum demonstration ? using codewarrior, open: ...\nos\applications\freqspectrum\freqspectrum.mcp ? open main.c and define demo_board_with _amplitude to be 0 ? build and download the project; when the debugger reaches main() , it will stop ? select run in the debugger to continue executing the demonstration ? input audio signals (less than 4khz) into the microphone ? the leds should turn on/off, depending on the frequencies contained in the audio signal ? pausing the demonstration while the demonstration is executing, the leds will flash if the irq button is pushed, the demonstration will pause and the leds will indicate the demonstrations state at the time it was paused the demonstration will continue when the irq button is pressed again 3.1.5 frequency detector demonstration this demonstration exercises the adc, pwm, and gpio in the 56f801 processor. it samples the adc at a rate of 8000 samples/second. the demonstration then performs an fft on the sampled data to determine the frequency content of the analog signal. finally, it uses the 10 leds, which d10 d8 d6 d4 d9 d7 d5 d3 d1 d2 2000hz 0hz 500hz 1000hz 1500hz not used 2500hz 3000hz 3500hz 4000hz f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
applications motorola 56f800 demonstration board applications 3-5 are connected to the pwm and gpio, to display the binary representation of the strongest frequency detected. see figure 3-4 , which illustrates leds during the frequency detector demonstration. figure 3-4. leds during the frequency detector demonstration 3.1.5.1 set-up for frequency detector demonstration demonstration board jumper settings: use default settings as shown in the 56f800 demonstration board users manual . 3.1.5.2 procedure for frequency detector demonstration ? using codewarrior, open: ...\nos\applications\freqdetector\freqdetector.mcp ? build and download the project; when the debugger reaches main() , it will stop ? select run in the debugger to continue executing the demonstration ? input audio signals (less than 4khz) into the microphone ? the leds should indicate the binary representation of the strongest frequency detected ? pausing the demonstration while the demonstration is executing, the leds will flash if the irq button is pushed, the demonstration will pause and the leds will indicate the demonstrations state at the time it was paused the demonstration will continue when the irq button is pressed again 3.1.6 potentiometer-controlled leds demonstration this demonstration exercises the adc, pwm, and gpio in the 56f801 processor. a voltage divider that is controlled by a potentiometer (pot) is attached to an6 of the adc. this demonstration continuously samples the adc and uses the 10 leds, which are connected to the pwm and gpio, to display the amplitude of the signal. since the voltage range is 0 to 3v, each led represents an increment of 0.3v. d10 d8 d6 d4 d9 d7 d5 d3 d1 d2 bit 4 bit 0 (lsb) bit 1 bit 2 bit 3 bit 9 (msb) bit 5 bit 6 bit 7 bit 8 note: bit resolution = 4hz f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
3-6 targeting motorola 56f800 demonstration board motorola 56f800 demonstration board applications figure 3-5 shows the leds during the pot-controlled leds demonstration. figure 3-5. leds in the pot-controlled leds demonstration 3.1.6.1 set-up for pot-controlled leds demonstration demonstration board jumper settings: use default settings as shown in the 56f800 demonstration board users manual . 3.1.6.2 procedure for pot-controlled leds demonstration ? using codewarrior, open: ...\nos\applications\potcontrolledleds\potcontrolledleds.mcp ? build and download the project; when the debugger reaches main() , it will stop ? select run in the debugger to continue executing the demonstration ? adjust the pot to vary the voltage into an6 ? the leds will indicate the amplitude of input signal with a resolution of 0.3v 3.1.7 serial bootloader the serial bootloader has been developed to load and run a proprietary user application presented as an s-record file into the program and data memory. the serial bootloader is located in the dedicated program memory region, called boot flash. the serial bootloader supports the simplest serial protocol, so a standard serial terminal program can be used on the host pc. the serial bootloader application reads the s-record file of a user application (for example, generated by codewarrior) via serial interface, parses this s-record file, and stores needed data in program and data flash memory. when the processing of the s-record file is finished, the bootloader launches the loaded application. if any error occurs while loading the s-record file, the bootloader outputs an error message with an error number via the serial line and resets the processor. 3.1.8 files the serial bootloader application includes the following files: ? ..\nos\applications\serial_bootloader\bootloader.mcp , project file d10 d8 d6 d4 d9 d7 d5 d3 d1 d2 1.5v 0.3v 0.6v 0.9v 1.2v 3.0v 1.8v 2.1v 2.4v 2.7v f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
applications motorola 56f800 demonstration board applications 3-7 ? ..\nos\applications\serial_bootloader\bootloader.c , main program ? ..\nos\applications\serial_bootloader\bootloader.h , header file with common parameters ? ..\nos\applications\serial_bootloader\com.c , communication module ? ..\nos\applications\serial_bootloader\com.h , header for communication module ? ..\nos\applications\serial_bootloader\sparser.c , s-record format parser module ? ..\nos\applications\serial_bootloader\sparser.h , header for s-record parser module ? ..\nos\applications\serial_bootloader\prog.c , flash programming module ? ..\nos\applications\serial_bootloader\prog.h , header for flash programming module ? ..\nos\applications\serial_bootloader\bootstart.c , start-up module ? ..\nos\applications\serial_bootloader\constdata.asm , description of strings data ? ..\nos\applications\serial_bootloader\resetvector.asm , reset and cop reset interrupt vectors description ? ..\nos\applications\serial_bootloader\targetdirectives , board name definition ? ..\nos\applications\serial_bootloader\config\linker.cm d, linker command file used for boot flash ? ..\nos\applications\serial_bootloader\config\flash.cfg , metrowerks codewarrior configuration file to work with flash these files are located in the sdk installation directory. the bootloader application uses only sdk files port.h , arch.h and periph.h from the ..\nos\include directory. it can be compiled and used without other parts of the sdk. 3.1.9 target configuration the bootloader uses a minimum of the hybrid controllers resources in order to reduce the possibility of conflict with the application being downloaded. specifically, it uses the 56f801s sci 0, port e, and pll peripherals, as well as internal ram for data buffering. the sci baud rate value is calculated statically with the assumption that the oscillator frequency is 8mhz. the 56f801s operational frequency is set to 60mhz. all peripherals used by the bootloader are returned to their initial state prior to the execution of the application programmed. the bootloader application relies on the targetdirectives file to define the target for which the application will be built. when this file contains #define dsp56801evm and #define dsp56f800_demo_board, this application is built assuming the existence of an internal relaxation oscillator and corresponding calibration value. at run time, the application automatically calibrates the internal relaxation oscillator to run at 8mhz. 3.1.9.1 set-up to use the bootloader: ? populate the demonstration board with the rs-232 circuitry (only pads are provided on the board) ? program the bootloader into boot flash ? using a serial cable, connect the demonstration boards rs-232 connector with the host pcs com serial port ? remove the host enable jumper (jp1) to allow the board to run as a stand-alone without a debugger f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
3-8 targeting motorola 56f800 demonstration board motorola 56f800 demonstration board applications 3.1.9.1.1 demonstration board jumper settings to load the bootloader into the 56f800 demonstration board, the following jumper settings are required: ? set jumper jp1 (host enable) to start a previously loaded bootloader on the 56f801 board, the following jumper settings are needed: ? do not set jumper jp1 (host enable) 3.1.9.2 build to build the serial bootloader, open the bootloader.mcp project file in the codewarrior ide and execute the project/make command. this will build and link the serial bootloader application. 3.1.9.2.1 download into boot flash to download, build the bootloader from codewarrior and load it into the board by choosing the project/debug command in the codewarrior ide. make sure that jumpers are set for loading as described in section 3.1.9.1.1. 3.1.9.2.2 host terminal program set-up a host terminal program is used to communicate with bootloader. the following description assumes that microsoft windows hyperterminal program is used. to configure microsoft hyperterminal to communicate with bootloader: ? start hyperterminal ? create a new connection ? select the com port previously connected to evm ?set: ? hyperterminal can now display bootloader messages 3.1.9.3 execute to execute the serial bootloader application after loading it into flash, set jumpers as described in section 3.1.9.1.1. and push the reset button. if the terminal program is set up properly and the evm and the host pc are properly connected, the terminal program will display a bootloader start-up message: "(c) 2000-2001 motorola inc. s-record loader. version 1.3" to load the s-record file, select the transfer/send text file from the hyperterminal menu and select a file. when the s-record file is loaded and the application is started, the terminal window displays a message similar to this: baud rate 115200 bps 8n1 8 data bits, no parity, 1 stop bit character format flow control protocol xon/xoff f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
applications motorola 56f800 demonstration board applications 3-9 "(c) 2000-2001 motorola inc. s-record loader. version 1.3 loaded 0x044d program and 0x000a data words. application started." the download rate is about 7660 bytes of s-record file per second loaded from the terminal, or about 1740 words of program or data memory stored into flash per second. if an error is detected while loading the s-record file, the bootloader displays the error message and resets the processor. for example, if an s-record file contains a character that is not permitted for s-records, the following message is displayed: "(c) 2000-2001 motorola inc. s-record loader. version 1.3 error # 0002 resetting the processor." after this message, the bootloader resets the processor and waits for the s-record file again. other loading errors are described in table 3-1 . if an application previously loaded via the bootloader uses the sdk variable bsp_bootloader_delay, (see section 3.1.9.4 ), the bootloader waits for the s-record file table 3-1. error codes for the serial bootloader application error code error title possible reasons what to do 1 data receive error ? any sci error except noise error (overrun, frame error, parity error) ? check connections with host pc and settings for host terminal program 2 invalid character ? received character is not "s" or any hexadecimal digit ? verify that s-record file does not contain any invalid characters ? check connections and send mode in the terminal program 3invalid s-record format ? invalid record type; permitted type is 0,3,7 ? s-record length is less than address plus checksum length ? verify s-record file 4 wrong s-record checksum ? calculated checksum of the received s-record did not match the received checksum in the s-record ? check s-record file ? check connections and send mode in terminal program 5 buffer overrun ? internal data buffer was full ? terminal program did not stop after receiving xoff character ? confirm that the terminal program supports xon/xoff flow control protocol 6flash programming error ? the resulting word in flash does not equal the word that was trying to be programmed into flash ? the bootloader tries to program flash only once; there is a problem with internal dsp flash 7 internal error ? bootloader data corrupted ? try to reload bootloader via codewarrior f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
3-10 targeting motorola 56f800 demonstration board motorola 56f800 demonstration board applications only until the required time-out expires, then launches the application. when this happens, the terminal window contains a message similar to this: "(c) 2000-2001 motorola inc. s-record loader. version 1.3 application started." 3.1.9.4 requirements for a loaded program if the application is loaded via the bootloader, it must meet the following requirements: ? particular start address for application - the entry point for the loaded application must be located at address 0x0080 in program memory; i.e., immediately after the interrupt table ? application cop vector - to use cop interrupt vector in an application loaded via bootloader, the entry point for the cop isr must be located at address 0x0082 in program memory ? application start delay variable must be set at address 0x0085 in program flash - the sdk provides a configuration variable for this purpose. for details on managing the bootloader without sdk support, see file config\vector.c in the sdk. ? restricted resources use - the application cannot occupy reset and cop interrupt vectors, and cannot place code into boot flash memory area. there is no way to place any initialized variable from the application into internal data ram while loading. this memory area is used by bootloader. all data from the s-record file that address to the restricted area will be ignored. all applications built with the sdk can be loaded via the serial bootloader. the sdk provides a fixed address for application entry point; redirection for the application cop vector; and has a configuration variable (bsp_bootloader_delay) for the appconfig.h file that determines the applications start delay time-out. possible values of bsp_bootloader_delay: if bsp_bootloader_delay is not set in the appconfig.h file, the default value for time-out is 30 seconds. 0 disable the bootloader, start the application immediately. after loading the application with this setting, there are only two ways to reenter bootloader: ? reload the bootloader from metrowerks codewarrior into boot flash ? reprogram the value of the start delay variable located at address 0x0083 in the program flash to zero value (0x0000) in the loaded application 0 - 254 set waiting time for the start of the s-record file for 0-255 seconds before the start of a previously loaded application 255 set waiting time to infinity. after reset, the bootloader waits for the s-record file without counting down any time-out f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola index i numerics 56800 demo board users manual ix a adc ix analog-to-digital converter ix d directory structure 2-1 dsp ix digital signal processor ix dsp56800 family manual ix dsp5680x users manual ix e embedded sdk programmers guide ix f fft ix fast fourier transform ix g gpio ix general purpose input/output ix i isr ix interrupt service request ix p pot ix potentiometer ix pwm ix pulse width modulator ix s sdk ix software development kit ix t targeting motorola dsp56f80x platform manual ix index f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .
motorola and the stylized m logo are registered in the us patent & trademark office. all other product or service names are the property of their respective owners. ? motorola, inc. 2003. how to reach us: usa/europe/locations not listed: motorola literature distribution; p.o. box 5405, denver, colorado 80217. 1C303C675C2140 or 1C800C441C2447 japan: motorola japan ltd.; sps, technical information center, 3C20C1, minamiCazabu. minatoCku, tokyo 106C8573 japan. 81C3C3440C3569 asia/pacific: motorola semiconductors h.k. ltd.; silicon harbour centre, 2 dai king street, tai po industrial estate, tai po, n.t., hong kon g. 852C26668334 technical information center: 1C800C521C6274 home page: http://www.motorola.com/semiconductors/ motorola reserves the right to make changes without further notice to any products herein. motorola makes no warranty, represen tation or guarantee regarding the suitability of its products for any particular purpose, nor does motorola assume any liability arising out of the application o r use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. typical param eters which may be provided in motorola data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. all oper ating parameters, including typicals must be validated for each customer application by customers technical experts. motorola does not convey any licens e under its patent rights nor the rights of others. motorola products are not designed, intended, or authorized for use as components in systems intended for sur gical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the motorola product cou ld create a situation where personal injury or death may occur. should buyer purchase or use motorola products for any such unintended or unauthorized application, buyer s hall indemnify and hold motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expens es, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized u se, even if such claim alleges that motorola was negligent regarding the design or manufacture of the part. motorola and the stylized m logo are registered trademarks of motorola, inc. motorola, inc. is an equal opportunity/affirmative action employer. f r e e s c a l e s e m i c o n d u c t o r , i freescale semiconductor, inc. f o r m o r e i n f o r m a t i o n o n t h i s p r o d u c t , g o t o : w w w . f r e e s c a l e . c o m n c . . .


▲Up To Search▲   

 
Price & Availability of SDK157

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X